# -*- coding: utf-8 -*-
"""
Created on Tue Jun  5 21:16:41 2018

@author: Administrator
"""

print('inside the BOLD_volume_processing:',__name__)
print('inside the BOLD_volume_processing:',__package__)
print('------------------------------')
from .spine import AgilePipe





manipulate_methods = { 'Delete_firstN_volumes_DFV':{'numb_unneeded_volumes':[10]},
                       'Despike_DS':{},
                       'Realign_RA':{'numb_static_volume':[2]},
                       'Slice_timing_ST':{'tpattern':['seqplus']},
                       'Coregistration_CR':{'numb_static_volume':[2],'fract_intensity_thres':[0.5]},
                       'Rest_state_fc_RSFC':{'freq_band':['0.01-0.1']},
                       'Normalization_NM':{'process_class_suffix':['nm'],'numb_static_volume':[2]}
                      #the value to the dict_key process_class_suffix must the same as the actual processing class name suffix
                      #after the coregistration class in this pipeline. in the place it is lowcase for function 'dirpath_dict_assign',
                      #but in the class 'Normalization_NM',it will changed to uppercase


                     }
#dirpath 也是一个dict，其keys与manipulate_methods完全相同，但元素是对应处理方法所生成的文件夹的名字。
dirpath_dict = {'original_dirpath':[],
                     #用来存放其实的文件。
                     'Delete_firstN_volumes_DFV':[],
                     'Despike_DS':[],
                     'Realign_RA':[],
                     'Slice_timing_ST':[],
                     'Coregistration_CR':[],
                     'Rest_state_fc_RSFC':[],
                     'Normalization_NM':[]

                    }

#agile_pipe()用ccs处理BOLD的测试代码
original_dirpath = r'/media/root/Elements3/XuanWu_gz/BOLD'
t1_dirpath_list = ['/media/root/Elements3/XuanWu_gz/T1','/media/root/Elements3/XuanWu_gz/T1_BF']  ##即使没有用也要赋值，否则会报错
dirpath_dict = dirpath_dict
manipulate_methods = manipulate_methods
parallel_core = 0.7
AgilePipe(original_dirpath,t1_dirpath_list,dirpath_dict,manipulate_methods,parallel_core)




